package springsecurity.dao;

import org.springframework.security.access.ConfigAttribute;

/**
 * Created with IntelliJ IDEA.
 *
 * @User: c.c
 * @Date: 2022/6/14
 * @Time: 14:21
 * @Description: 权限验证返回前端信息
 */

public class AuthConfigAttribute  implements ConfigAttribute {

    /**
     * 权限定义
     */
    private final String auth;
    /**
     * 请求对应的权限表ID
     */
    private final String authId;

    public AuthConfigAttribute(String auth, String authId) {
        this.auth = auth;
        this.authId = authId;
    }

    @Override
    public String getAttribute() {
        return auth;
    }

    public String getAuthId() {
        return authId;
    }
}
